Commit b679f2e0 authored by Christian Hansen's avatar Christian Hansen Committed by Anton Koch
Browse files

removed duplicated "create"-buttons (#260)

parent 1148d32f
......@@ -7,20 +7,6 @@
content-paragraph(:position="'first'")
data-table(v-if="user", :config="config", :title="'routes.documents.list.title'", ref="listTable")
// "create grid" button
//
template(slot="buttons-left")
q-btn(@click="$router.push({ name: 'documents.create' })", color="primary") {{ $t('buttons.create_document') }}
//
template(slot="buttons-left")
q-btn(@click="$router.push({ name: 'documents.create' })",
color="primary", icon="add")
span.on-right(v-if="!isMobile") {{ $t('buttons.create_document') }}
template(slot="top-buttons")
q-btn(@click="$router.push({ name: 'documents.create' })",
color="primary", :class="{'full-width': isMobile}", icon="add")
span.on-right.gt-xs {{ $t('buttons.create_document') }}
</template>
<script>
......
......@@ -15,20 +15,6 @@
:requestTransform="requestTransform"
base-path="grids",
:has-show="true")
// "create grid" button
// template(slot="buttons-left")
template(slot="top-buttons")
// q-btn(@click="$router.push({ name: 'mosys.grids.create' })", color="primary") {{ $t('buttons.create_grid') }}
//
q-btn(@click="$router.push({ name: 'mosys.grids.create' })",
color="primary", icon="add")
span.on-right(v-if="!isMobile") {{ $t('buttons.create_grid') }}
q-btn(@click="$router.push({ name: 'mosys.grids.create' })",
color="primary", :class="{'full-width': isMobile}", icon="add")
span.on-right.gt-xs {{ $t('buttons.create_grid') }}
// span.on-right(v-if="!isMobile") {{ $t('buttons.create_grid') }}
// span.on-right {{ $t('buttons.create_grid') }}
</template>
<script>
......
......@@ -25,26 +25,15 @@
content-paragraph
data-table(
:config="config",
:title="'routes.piecemaker.timelines.list.title'",
ref="listTable",
:config="config",
:title="'routes.piecemaker.timelines.list.title'",
ref="listTable",
path="maps",
:query="query",
base-path="timelines",
:has-show="isStaging",
:request-transform="requestTransform"
)
// button: create timeline
//
template(slot="buttons-left")
q-btn(@click="$router.push({ name: 'piecemaker.timelines.create' })",
color="primary", icon="add")
span.on-right(v-if="!isMobile") {{ $t('buttons.create_timeline') }}
template(slot="top-buttons")
q-btn(@click="$router.push({ name: 'piecemaker.timelines.create' })",
color="primary", :class="{'full-width': isMobile}", icon="add")
span.on-right.gt-xs {{ $t('buttons.create_timeline') }}
:query="query",
base-path="timelines",
:has-show="isStaging",
:request-transform="requestTransform"
)
</template>
<script>
......
......@@ -2,31 +2,14 @@
full-screen
confirm-modal(ref="confirmModal", @confirm="handleConfirmModal")
//
span(slot="form-logo")
span(slot="form-title" v-if="timeline") {{ timeline.title }}: {{ $t('routes.piecemaker.videos.list.title') }}
content-block(:position="'first'")
headline(v-if="timeline", :content="$t('routes.piecemaker.videos.list.title')")
| {{ timeline.title }}
content-paragraph(:position="'first'")
data-table(v-if="query", ref="listTable", :config="config", :title="'routes.piecemaker.videos.list.title'",
path="annotations", :query="query", base-path="videos", :request-transform="requestTransform", :customTitleLink="'piecemaker.videos.annotate'"
)
//
template(slot="buttons-left")
//
q-btn(@click="$router.push({ name: 'piecemaker.videos.create', params: { timelineUuid: $route.params.timelineUuid } })",
color="primary") {{ $t('buttons.add_video') }}
//
q-btn(@click="$router.push({ name: 'piecemaker.videos.create', params: { timelineUuid: $route.params.timelineUuid } })",
color="primary", icon="add")
span.on-right(v-if="!isMobile") {{ $t('buttons.add_video') }}
template(slot="top-buttons")
q-btn(@click="$router.push({ name: 'piecemaker.videos.create', params: { timelineUuid: $route.params.timelineUuid } })",
color="primary", :class="{'full-width': isMobile}", icon="add")
span.on-right.gt-xs {{ $t('buttons.add_video') }}
path="annotations", :query="query", base-path="videos", :request-transform="requestTransform",
:customTitleLink="'piecemaker.videos.annotate'")
</template>
<script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment