diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-06-29 00:29:21 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-06-29 16:52:33 +0000 |
commit | 5f02663975b6fafe04db9f3e594451ca0a6195c4 (patch) | |
tree | 0c6d5476b05870bf4556c02b03f75e651b7205e9 /apps/workflowengine/src/components | |
parent | 477dae9e1192203f460ae63e6744779fb813defd (diff) | |
download | nextcloud-server-5f02663975b6fafe04db9f3e594451ca0a6195c4.tar.gz nextcloud-server-5f02663975b6fafe04db9f3e594451ca0a6195c4.zip |
Use Button component to show more workflows
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/workflowengine/src/components')
-rw-r--r-- | apps/workflowengine/src/components/Workflow.vue | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/apps/workflowengine/src/components/Workflow.vue b/apps/workflowengine/src/components/Workflow.vue index f009e1e8a90..f81a53563b5 100644 --- a/apps/workflowengine/src/components/Workflow.vue +++ b/apps/workflowengine/src/components/Workflow.vue @@ -26,11 +26,13 @@ </transition-group> <div v-if="hasMoreOperations" class="actions__more"> - <button class="icon" - :class="showMoreOperations ? 'icon-triangle-n' : 'icon-triangle-s'" - @click="showMoreOperations=!showMoreOperations"> + <Button @click="showMoreOperations = !showMoreOperations"> + <template #icon> + <MenuUp v-if="showMoreOperations" :size="20" /> + <MenuDown v-else :size="20" /> + </template> {{ showMoreOperations ? t('workflowengine', 'Show less') : t('workflowengine', 'Show more') }} - </button> + </Button> </div> <h2 v-if="scope === 0" class="configured-flows"> @@ -51,15 +53,21 @@ import Rule from './Rule' import Operation from './Operation' import SettingsSection from '@nextcloud/vue/dist/Components/SettingsSection' +import Button from '@nextcloud/vue/dist/Components/Button' import { mapGetters, mapState } from 'vuex' import { generateUrl } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' +import MenuUp from 'vue-material-design-icons/MenuUp' +import MenuDown from 'vue-material-design-icons/MenuDown' const ACTION_LIMIT = 3 export default { name: 'Workflow', components: { + Button, + MenuDown, + MenuUp, Operation, Rule, SettingsSection, @@ -125,10 +133,8 @@ export default { flex-basis: 250px; } } - - button.icon { - padding-left: 32px; - background-position: 10px center; + .actions__more { + margin-bottom: 10px; } .slide-enter-active { |