Skip to content

Commit

Permalink
filter daemon list for docker-install
Browse files Browse the repository at this point in the history
  • Loading branch information
janepie committed Sep 27, 2024
1 parent 1f15793 commit 482bde2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/app_api-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143345,7 +143345,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"compressed":true,"categories":[{"id"
/******/ // This function allow to reference async chunks
/******/ __webpack_require__.u = (chunkId) => {
/******/ // return url for filenames based on template
/******/ return "app_api-" + chunkId + ".js?v=" + {"node_modules_nextcloud_dialogs_dist_chunks_index-C1azEbgd_mjs":"ce0d37e24678dfb5ef24","vendors-node_modules_vue-material-design-icons_Alert_vue-node_modules_vue-material-design-ico-b44ec1":"276c7b3da988dc665f35","src_views_Apps_vue":"fe0d605e039a1bd49604","vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-CDU2njOJ_mjs":"5cd69d99367c861809dd"}[chunkId] + "";
/******/ return "app_api-" + chunkId + ".js?v=" + {"node_modules_nextcloud_dialogs_dist_chunks_index-C1azEbgd_mjs":"ce0d37e24678dfb5ef24","vendors-node_modules_vue-material-design-icons_Alert_vue-node_modules_vue-material-design-ico-b44ec1":"276c7b3da988dc665f35","src_views_Apps_vue":"c83d1d4fb9f3473331b9","vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-CDU2njOJ_mjs":"5cd69d99367c861809dd"}[chunkId] + "";
/******/ };
/******/ })();
/******/
Expand Down
2 changes: 1 addition & 1 deletion js/app_api-main.js.map

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions js/app_api-src_views_Apps_vue.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/app_api-src_views_Apps_vue.js.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/components/Apps/DaemonSelectionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-if="daemons.length > 0"
:aria-label="t('app_api', 'Registered Deploy daemons list')">
<DaemonEnableSelection
v-for="daemon in daemons"
v-for="daemon in dockerDaemons"
:key="daemon.id"
:daemon="daemon"
:is-default="defaultDaemon === daemon.name"
Expand Down Expand Up @@ -50,8 +50,16 @@ export default {
required: true,
},
},
computed: {
dockerDaemons() {
return this.daemons.filter(function(daemon) {
return daemon.accepts_deploy_id === 'docker-install'
})
},
},
methods: {
closeModal() {
console.warn(this.daemons)
this.$emit('close')
},
},
Expand Down

0 comments on commit 482bde2

Please sign in to comment.