@@ -42,9 +42,10 @@
|
|||||||
<label for="new-stack-input-main" class="hidden-visually">Add a new stack</label>
|
<label for="new-stack-input-main" class="hidden-visually">Add a new stack</label>
|
||||||
<input id="new-stack-input-main" v-model="newStackTitle" type="text"
|
<input id="new-stack-input-main" v-model="newStackTitle" type="text"
|
||||||
class="no-close"
|
class="no-close"
|
||||||
placeholder="Add a new stack">
|
placeholder="Add a new stack" required>
|
||||||
<input v-tooltip="t('deck', 'clickAddNewStack')" class="icon-confirm" type="submit"
|
<input v-tooltip="t('deck', 'clickAddNewStack')" class="icon-confirm" type="submit"
|
||||||
value="">
|
value="">
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="board-action-buttons">
|
<div class="board-action-buttons">
|
||||||
|
|||||||
@@ -48,8 +48,10 @@
|
|||||||
<label for="new-stack-input-main" class="hidden-visually">Add a new card</label>
|
<label for="new-stack-input-main" class="hidden-visually">Add a new card</label>
|
||||||
<input id="new-stack-input-main" v-model="newCardTitle" type="text"
|
<input id="new-stack-input-main" v-model="newCardTitle" type="text"
|
||||||
class="no-close"
|
class="no-close"
|
||||||
placeholder="Add a new card">
|
placeholder="Add a new card" required>
|
||||||
<input v-tooltip="t('deck', 'Create a new card')" class="icon-confirm" type="submit"
|
|
||||||
|
<input class="icon-confirm"
|
||||||
|
type="submit"
|
||||||
value="">
|
value="">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -121,6 +123,7 @@ export default {
|
|||||||
boardId: this.stack.boardId
|
boardId: this.stack.boardId
|
||||||
}
|
}
|
||||||
this.$store.dispatch('addCard', newCard)
|
this.$store.dispatch('addCard', newCard)
|
||||||
|
this.newCardTitle = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
<div :class="{'compact': compactMode}" tag="div" class="card"
|
<div :class="{'compact': compactMode}" tag="div" class="card"
|
||||||
@click.self="openCard">
|
@click.self="openCard">
|
||||||
<div class="card-upper">
|
<div class="card-upper">
|
||||||
<h3 @click.stop="startEditing(card)">{{ card.title }}</h3>
|
<h3 v-if="showArchived">{{ card.title }}</h3>
|
||||||
|
<h3 v-else @click.stop="startEditing(card)">{{ card.title }}</h3>
|
||||||
<transition name="fade" mode="out-in">
|
<transition name="fade" mode="out-in">
|
||||||
<form v-if="editing">
|
<form v-if="editing">
|
||||||
<input v-model="copiedCard.title" type="text" autofocus>
|
<input v-model="copiedCard.title" type="text" autofocus>
|
||||||
@@ -32,9 +33,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<Actions @click.stop.prevent>
|
<Actions @click.stop.prevent>
|
||||||
<ActionButton icon="icon-user" @click="assignCardToMe()">{{ t('deck', 'Assign to me') }}</ActionButton>
|
<ActionButton v-if="showArchived === false" icon="icon-user" @click="assignCardToMe()">{{ t('deck', 'Assign to me') }}</ActionButton>
|
||||||
<ActionButton icon="icon-archive" @click="archiveUnarchiveCard()">{{ t('deck', (showArchived ? 'Unarchive card' : 'Archive card')) }}</ActionButton>
|
<ActionButton icon="icon-archive" @click="archiveUnarchiveCard()">{{ t('deck', (showArchived ? 'Unarchive card' : 'Archive card')) }}</ActionButton>
|
||||||
<ActionButton icon="icon-delete" @click="deleteCard()">{{ t('deck', 'Delete card') }}</ActionButton>
|
<ActionButton v-if="showArchived === false" icon="icon-delete" @click="deleteCard()">{{ t('deck', 'Delete card') }}</ActionButton>
|
||||||
<ActionButton icon="icon-settings-dark" @click="openCard">{{ t('deck', 'Card details') }}</ActionButton>
|
<ActionButton icon="icon-settings-dark" @click="openCard">{{ t('deck', 'Card details') }}</ActionButton>
|
||||||
</Actions>
|
</Actions>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user