diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-08-31 11:53:15 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-09-10 09:01:24 +0200 |
commit | 28a7721b2b485e2ad842d91001601e5e35f71b70 (patch) | |
tree | db09284d0e331a3b9f22c7f2b1e2b34e1f2fb53d /apps/workflowengine/src/components/Rule.vue | |
parent | ae55829989d84c6e3937982479bacb79576333cb (diff) | |
download | nextcloud-server-28a7721b2b485e2ad842d91001601e5e35f71b70.tar.gz nextcloud-server-28a7721b2b485e2ad842d91001601e5e35f71b70.zip |
Handle operator registration properly
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/src/components/Rule.vue')
-rw-r--r-- | apps/workflowengine/src/components/Rule.vue | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue index 6a8757c5b3f..f1551d985ca 100644 --- a/apps/workflowengine/src/components/Rule.vue +++ b/apps/workflowengine/src/components/Rule.vue @@ -1,7 +1,7 @@ <template> <div class="section rule" :style="{ borderLeftColor: operation.color }"> <!-- TODO: icon-confirm --> - <div class="trigger icon-confirm"> + <div class="trigger"> <p> <span>{{ t('workflowengine', 'When') }}</span> <Event :rule="rule" @update="updateRule" /> @@ -12,10 +12,11 @@ </p> <p> <span /> - <di<input v-if="lastCheckComplete" type="button" class="check--add" + <input v-if="lastCheckComplete" type="button" class="check--add" value="Add a new filter" @click="rule.checks.push({class: null, operator: null, value: null})"> </p> </div> + <div class="flow-icon icon-confirm"></div> <div class="action"> <div class="buttons"> <Actions> @@ -26,15 +27,15 @@ Remove rule </ActionButton> </Actions> - <button v-tooltip="ruleStatus.tooltip" class="status-button icon" :class="ruleStatus.class" - @click="saveRule"> - {{ ruleStatus.title }} - </button> </div> <Operation :operation="operation" :colored="false"> <component :is="operation.options" v-if="operation.options" v-model="rule.operation" @input="updateOperation" /> </Operation> + <button v-tooltip="ruleStatus.tooltip" class="status-button icon" :class="ruleStatus.class" + @click="saveRule"> + {{ ruleStatus.title }} + </button> </div> </div> </template> @@ -152,6 +153,8 @@ export default { .status-button { transition: 0.5s ease all; + display: block; + margin: auto; } .status-button.primary { padding-left: 32px; @@ -166,15 +169,19 @@ export default { border: none; } + .flow-icon { + width: 44px; + } + .rule { display: flex; flex-wrap: wrap; - border-left: 5px solid #fff; + border-left: 5px solid var(--color-primary-element); .trigger, .action { flex-grow: 1; min-height: 100px; - max-width: 900px; + max-width: 700px; } .action { max-width: 400px; @@ -214,10 +221,24 @@ export default { background-color: transparent; padding-left: 6px; margin: 0; - width: 200px; + width: 180px; border-radius: var(--border-radius); font-weight: normal; text-align: left; font-size: 1em; } + + @media (max-width:1400px) { + .rule { + &, .trigger, .action { + width: 100%; + max-width: 100%; + } + .flow-icon { + display: none; + } + } + } + + </style> |