|
3 | 3 | - SPDX-License-Identifier: AGPL-3.0-or-later |
4 | 4 | --> |
5 | 5 | <template> |
6 | | - <NcAppNavigationItem v-if="!editing" |
7 | | - :name="t('deck', 'Add board')" |
8 | | - icon="icon-add" |
9 | | - @click.prevent.stop="startCreateBoard" /> |
10 | | - <div v-else class="board-create"> |
11 | | - <NcColorPicker v-model="color" class="app-navigation-entry-bullet-wrapper" :disabled="loading"> |
12 | | - <div :style="{ backgroundColor: color }" class="color0 icon-colorpicker app-navigation-entry-bullet" /> |
13 | | - </NcColorPicker> |
14 | | - <form @submit.prevent.stop="createBoard"> |
15 | | - <NcTextField ref="inputField" |
16 | | - :disable="loading" |
17 | | - :value.sync="value" |
18 | | - :placeholder="t('deck', 'Board name')" |
19 | | - type="text" |
20 | | - required /> |
21 | | - <NcButton type="tertiary" |
22 | | - :disabled="loading" |
23 | | - :title="t('deck', 'Cancel edit')" |
24 | | - @click.stop.prevent="cancelEdit"> |
25 | | - <template #icon> |
26 | | - <CloseIcon :size="20" /> |
27 | | - </template> |
28 | | - </NcButton> |
29 | | - <NcButton type="tertiary" |
30 | | - native-type="submit" |
31 | | - :disabled="loading" |
32 | | - :title="t('deck', 'Save board')"> |
33 | | - <template #icon> |
34 | | - <CheckIcon v-if="!loading" :size="20" /> |
35 | | - <NcLoadingIcon v-else :size="20" /> |
36 | | - </template> |
37 | | - </NcButton> |
38 | | - </form> |
39 | | - </div> |
| 6 | + <span> |
| 7 | + <NcAppNavigationItem v-if="!editing" |
| 8 | + :name="t('deck', 'Add board')" |
| 9 | + icon="icon-add" |
| 10 | + @click.prevent.stop="startCreateBoard" /> |
| 11 | + <div v-else class="board-create"> |
| 12 | + <NcColorPicker v-model="color" class="app-navigation-entry-bullet-wrapper" :disabled="loading"> |
| 13 | + <div :style="{ backgroundColor: color }" class="color0 icon-colorpicker app-navigation-entry-bullet" /> |
| 14 | + </NcColorPicker> |
| 15 | + <form @submit.prevent.stop="createBoard"> |
| 16 | + <NcTextField ref="inputField" |
| 17 | + :disable="loading" |
| 18 | + :value.sync="value" |
| 19 | + :placeholder="t('deck', 'Board name')" |
| 20 | + type="text" |
| 21 | + required /> |
| 22 | + <NcButton type="tertiary" |
| 23 | + :disabled="loading" |
| 24 | + :title="t('deck', 'Cancel edit')" |
| 25 | + @click.stop.prevent="cancelEdit"> |
| 26 | + <template #icon> |
| 27 | + <CloseIcon :size="20" /> |
| 28 | + </template> |
| 29 | + </NcButton> |
| 30 | + <NcButton type="tertiary" |
| 31 | + native-type="submit" |
| 32 | + :disabled="loading" |
| 33 | + :title="t('deck', 'Save board')"> |
| 34 | + <template #icon> |
| 35 | + <CheckIcon v-if="!loading" :size="20" /> |
| 36 | + <NcLoadingIcon v-else :size="20" /> |
| 37 | + </template> |
| 38 | + </NcButton> |
| 39 | + </form> |
| 40 | + </div> |
| 41 | + </span> |
40 | 42 | </template> |
41 | 43 |
|
42 | 44 | <script> |
|
0 commit comments