Skip to content

Commit

Permalink
added listed checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
RalkeyOfficial committed Aug 7, 2024
1 parent aa981c7 commit 4431191
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/modals/catalog/AddCatalogModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ import { catalogiStore, navigationStore } from '../../store/store.js'
label="Beschrijving"
maxlength="255"
:value.sync="catalogi.description" />
<NcCheckboxRadioSwitch :disabled="loading"
label="Listed"
:checked.sync="catalogi.listed">
Listed
</NcCheckboxRadioSwitch>
</div>
<NcButton v-if="success === null"
:disabled="!catalogi.title || loading"
Expand All @@ -50,7 +55,7 @@ import { catalogiStore, navigationStore } from '../../store/store.js'
</template>

<script>
import { NcButton, NcModal, NcTextField, NcLoadingIcon, NcNoteCard } from '@nextcloud/vue'
import { NcButton, NcModal, NcTextField, NcLoadingIcon, NcNoteCard, NcCheckboxRadioSwitch } from '@nextcloud/vue'
import ContentSaveOutline from 'vue-material-design-icons/ContentSaveOutline.vue'
export default {
Expand All @@ -61,6 +66,7 @@ export default {
NcButton,
NcLoadingIcon,
NcNoteCard,
NcCheckboxRadioSwitch,
// Icons
ContentSaveOutline,
},
Expand All @@ -70,6 +76,7 @@ export default {
title: '',
summary: '',
description: '',
listed: false,
},
loading: false,
success: null,
Expand All @@ -84,6 +91,7 @@ export default {
title: '',
summary: '',
description: '',
listed: false,
}
},
addCatalog() {
Expand Down
8 changes: 7 additions & 1 deletion src/modals/catalog/EditCatalogModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ import { catalogiStore, navigationStore } from '../../store/store.js'
label="Beschrijving"
maxlength="255"
:value.sync="catalogiStore.catalogiItem.description" />
<NcCheckboxRadioSwitch :disabled="loading"
label="Listed"
:checked.sync="catalogiStore.catalogiItem.listed">
Listed
</NcCheckboxRadioSwitch>
</div>
<NcButton v-if="success === null"
:disabled="loading"
Expand All @@ -50,7 +55,7 @@ import { catalogiStore, navigationStore } from '../../store/store.js'
</template>

<script>
import { NcButton, NcModal, NcTextField, NcNoteCard, NcLoadingIcon } from '@nextcloud/vue'
import { NcButton, NcModal, NcTextField, NcNoteCard, NcLoadingIcon, NcCheckboxRadioSwitch } from '@nextcloud/vue'
import ContentSaveOutline from 'vue-material-design-icons/ContentSaveOutline.vue'
export default {
Expand All @@ -61,6 +66,7 @@ export default {
NcButton,
NcNoteCard,
NcLoadingIcon,
NcCheckboxRadioSwitch,
// Icons
ContentSaveOutline,
},
Expand Down

0 comments on commit 4431191

Please sign in to comment.