2024-05-30 14:13:41 -04:00
|
|
|
<!--
|
|
|
|
|
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
-->
|
2019-08-06 11:40:30 -04:00
|
|
|
<template>
|
2019-08-29 10:50:33 -04:00
|
|
|
<div class="actions__item" :class="{'colored': colored}" :style="{ backgroundColor: colored ? operation.color : 'transparent' }">
|
|
|
|
|
<div class="icon" :class="operation.iconClass" :style="{ backgroundImage: operation.iconClass ? '' : `url(${operation.icon})` }" />
|
2019-09-02 06:11:19 -04:00
|
|
|
<div class="actions__item__description">
|
2019-09-09 09:04:51 -04:00
|
|
|
<h3>{{ operation.name }}</h3>
|
|
|
|
|
<small>{{ operation.description }}</small>
|
2022-08-22 08:29:58 -04:00
|
|
|
<NcButton v-if="colored">
|
2022-05-12 03:50:33 -04:00
|
|
|
{{ t('workflowengine', 'Add new flow') }}
|
2022-08-22 08:29:58 -04:00
|
|
|
</NcButton>
|
2019-09-02 06:11:19 -04:00
|
|
|
</div>
|
2019-09-09 07:53:03 -04:00
|
|
|
<div class="actions__item_options">
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
2019-08-06 11:40:30 -04:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-03-23 02:38:34 -04:00
|
|
|
import NcButton from '@nextcloud/vue/components/NcButton'
|
2022-05-12 03:50:33 -04:00
|
|
|
|
2019-08-29 10:50:33 -04:00
|
|
|
export default {
|
|
|
|
|
name: 'Operation',
|
2022-05-12 03:50:33 -04:00
|
|
|
components: {
|
2022-08-22 08:29:58 -04:00
|
|
|
NcButton,
|
2022-05-12 03:50:33 -04:00
|
|
|
},
|
2019-08-29 10:50:33 -04:00
|
|
|
props: {
|
|
|
|
|
operation: {
|
|
|
|
|
type: Object,
|
2019-11-13 07:05:10 -05:00
|
|
|
required: true,
|
2019-08-29 10:50:33 -04:00
|
|
|
},
|
|
|
|
|
colored: {
|
|
|
|
|
type: Boolean,
|
2019-11-13 07:05:10 -05:00
|
|
|
default: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-08-29 10:50:33 -04:00
|
|
|
}
|
2019-08-06 11:40:30 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-11-18 06:25:05 -05:00
|
|
|
@use "./../styles/operation" as *;
|
2019-08-19 11:13:33 -04:00
|
|
|
</style>
|