]> source.dussan.org Git - nextcloud-server.git/commitdiff
add vue button component in workflow operation.vue
authorVanessa Pertsch <vanessa.pertsch@nextcloud.com>
Thu, 12 May 2022 07:50:33 +0000 (09:50 +0200)
committerVanessa Pertsch <vanessa.pertsch@nextcloud.com>
Thu, 12 May 2022 14:16:59 +0000 (16:16 +0200)
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
apps/workflowengine/src/components/Operation.vue
apps/workflowengine/src/styles/operation.scss

index 47a40eca950e8e87ce134e956fea3865032590de..a148ef3097b8785e7b19d05437ce54bef6442ab4 100644 (file)
@@ -4,11 +4,9 @@
                <div class="actions__item__description">
                        <h3>{{ operation.name }}</h3>
                        <small>{{ operation.description }}</small>
-                       <div>
-                               <button v-if="colored">
-                                       {{ t('workflowengine', 'Add new flow') }}
-                               </button>
-                       </div>
+                       <Button v-if="colored">
+                               {{ t('workflowengine', 'Add new flow') }}
+                       </Button>
                </div>
                <div class="actions__item_options">
                        <slot />
 </template>
 
 <script>
+import Button from '@nextcloud/vue/dist/Components/Button'
+
 export default {
        name: 'Operation',
+       components: {
+               Button,
+       },
        props: {
                operation: {
                        type: Object,
index 89c105d58fe4647e0967d7e7f9ecd9d24fdc45fc..d936c64e2de908fbeab888d59344626db337d5f3 100644 (file)
@@ -24,6 +24,7 @@
        flex-grow: 1;
        display: flex;
        flex-direction: column;
+       align-items: center;
 }
 .actions__item_options {
        width: 100%;