refactor: remove icon-left from Update button in multiple settings components
(cherry picked from commit 149901f6054f000d503ef8940037c13bd2e344f3)
This commit is contained in:
parent
a4d3852c0e
commit
100eec0677
@ -1,35 +1,39 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="p-8 sticky top-0">
|
<div class="flex h-full flex-col gap-6 p-6 text-ink-gray-8">
|
||||||
<div class="flex items-start justify-between">
|
<!-- Header -->
|
||||||
<div class="flex flex-col gap-1">
|
<div class="flex justify-between px-2 pt-2">
|
||||||
<h1 class="text-xl font-semibold text-ink-gray-8">
|
<div class="flex flex-col gap-1 w-9/12">
|
||||||
|
<h2 class="flex gap-2 text-xl font-semibold leading-none h-5">
|
||||||
{{ __('Assignment rules') }}
|
{{ __('Assignment rules') }}
|
||||||
</h1>
|
</h2>
|
||||||
<p class="text-p-base text-ink-gray-6 max-w-md">
|
<p class="text-p-base text-ink-gray-6">
|
||||||
{{
|
{{
|
||||||
__(
|
__(
|
||||||
'Assignment Rules automatically route leads or deals to the right team members based on predefined conditions.',
|
'Assignment rules automatically assign lead/deal to the right sales user based on predefined conditions',
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
||||||
:label="__('Create new')"
|
<Button
|
||||||
theme="gray"
|
:label="__('New')"
|
||||||
variant="solid"
|
icon-left="plus"
|
||||||
@click="goToNew()"
|
variant="solid"
|
||||||
icon-left="plus"
|
@click="goToNew()"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Assignment rules list -->
|
||||||
|
<div class="overflow-y-auto px-2">
|
||||||
|
<AssignmentRulesList />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="overflow-y-auto px-8 pb-6">
|
|
||||||
<AssignmentRulesList />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { createResource } from 'frappe-ui'
|
|
||||||
import AssignmentRulesList from './AssignmentRulesList.vue'
|
import AssignmentRulesList from './AssignmentRulesList.vue'
|
||||||
|
import { createResource } from 'frappe-ui'
|
||||||
import { inject, provide } from 'vue'
|
import { inject, provide } from 'vue'
|
||||||
|
|
||||||
const updateStep = inject('updateStep')
|
const updateStep = inject('updateStep')
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
||||||
<Button
|
<Button
|
||||||
:label="__('Update')"
|
:label="__('Update')"
|
||||||
icon-left="plus"
|
|
||||||
variant="solid"
|
variant="solid"
|
||||||
:disabled="!settings.isDirty"
|
:disabled="!settings.isDirty"
|
||||||
:loading="settings.loading"
|
:loading="settings.loading"
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
||||||
<Button
|
<Button
|
||||||
:label="__('Update')"
|
:label="__('Update')"
|
||||||
icon-left="plus"
|
|
||||||
variant="solid"
|
variant="solid"
|
||||||
:disabled="!settings.isDirty"
|
:disabled="!settings.isDirty"
|
||||||
:loading="settings.loading"
|
:loading="settings.loading"
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
<div class="flex item-center space-x-2 w-3/12 justify-end">
|
||||||
<Button
|
<Button
|
||||||
:label="__('Update')"
|
:label="__('Update')"
|
||||||
icon-left="plus"
|
|
||||||
variant="solid"
|
variant="solid"
|
||||||
:disabled="!document.isDirty"
|
:disabled="!document.isDirty"
|
||||||
:loading="document.loading"
|
:loading="document.loading"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user