mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 00:10:37 +00:00
FliterBar: remove save button (#1937)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
fba7cfb113
commit
5faa41a206
@ -15,7 +15,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Class, Doc, DocumentQuery, Ref } from '@anticrm/core'
|
import { Class, Doc, DocumentQuery, Ref } from '@anticrm/core'
|
||||||
import { getClient } from '@anticrm/presentation'
|
import { getClient } from '@anticrm/presentation'
|
||||||
import { Button, eventToHTMLElement, IconAdd, Label, showPopup } from '@anticrm/ui'
|
import { Button, eventToHTMLElement, IconAdd, showPopup } from '@anticrm/ui'
|
||||||
import { Filter } from '@anticrm/view'
|
import { Filter } from '@anticrm/view'
|
||||||
import { createEventDispatcher } from 'svelte'
|
import { createEventDispatcher } from 'svelte'
|
||||||
import view from '../../plugin'
|
import view from '../../plugin'
|
||||||
@ -31,7 +31,7 @@
|
|||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
let maxIndex = filters ? filters.length : 0
|
let maxIndex = filters ? filters.length : 0
|
||||||
let allFilters: boolean = true
|
// const allFilters: boolean = true
|
||||||
|
|
||||||
function onChange (e: Filter | undefined) {
|
function onChange (e: Filter | undefined) {
|
||||||
if (e === undefined) return
|
if (e === undefined) return
|
||||||
@ -143,7 +143,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="buttons-group small-gap ml-4">
|
<!-- SAVE BUTTON -->
|
||||||
|
<!-- <div class="buttons-group small-gap ml-4">
|
||||||
{#if filters.length > 1}
|
{#if filters.length > 1}
|
||||||
<div class="flex-baseline">
|
<div class="flex-baseline">
|
||||||
<span class="overflow-label">
|
<span class="overflow-label">
|
||||||
@ -161,7 +162,7 @@
|
|||||||
<div class="buttons-divider" />
|
<div class="buttons-divider" />
|
||||||
{/if}
|
{/if}
|
||||||
<Button icon={view.icon.Views} label={view.string.Save} size={'small'} width={'fit-content'} />
|
<Button icon={view.icon.Views} label={view.string.Save} size={'small'} width={'fit-content'} />
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
@ -191,24 +192,24 @@
|
|||||||
margin-bottom: 0.375rem;
|
margin-bottom: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-button {
|
// .filter-button {
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: baseline;
|
// align-items: baseline;
|
||||||
flex-shrink: 0;
|
// flex-shrink: 0;
|
||||||
padding: 0 0.375rem;
|
// padding: 0 0.375rem;
|
||||||
height: 1.5rem;
|
// height: 1.5rem;
|
||||||
min-width: 1.5rem;
|
// min-width: 1.5rem;
|
||||||
white-space: nowrap;
|
// white-space: nowrap;
|
||||||
line-height: 150%;
|
// line-height: 150%;
|
||||||
color: var(--accent-color);
|
// color: var(--accent-color);
|
||||||
background-color: transparent;
|
// background-color: transparent;
|
||||||
border-radius: 0.25rem;
|
// border-radius: 0.25rem;
|
||||||
transition-duration: background-color 0.15s ease-in-out;
|
// transition-duration: background-color 0.15s ease-in-out;
|
||||||
|
|
||||||
&:hover {
|
// &:hover {
|
||||||
color: var(--caption-color);
|
// color: var(--caption-color);
|
||||||
background-color: var(--noborder-bg-hover);
|
// background-color: var(--noborder-bg-hover);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user