-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(notifications): fix
edit subscription dialog
Dialog did not work correctly and could not be patched. See: BEDS-580
- Loading branch information
1 parent
1e6c24a
commit 46a333f
Showing
20 changed files
with
564 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div class="bc-settings"> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.bc-settings{ | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<script setup lang="ts"> | ||
import { faInfoCircle } from '@fortawesome/pro-regular-svg-icons' | ||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' | ||
defineProps<{ | ||
hasBorderTop?: boolean, | ||
hasPremiumGem?: boolean, | ||
hasUnit?: boolean, | ||
info?: string, | ||
label: string, | ||
}>() | ||
const idCheckbox = useId() | ||
const checkbox = defineModel<boolean>('checkbox') | ||
const input = defineModel<string>('input') | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="bc-settings-row" | ||
:class="{ 'has-border-top': hasBorderTop }" | ||
> | ||
<span class="bc-settings-row--info"> | ||
<label | ||
:for="idCheckbox" | ||
> | ||
{{ label }} | ||
</label> | ||
<BcTooltip | ||
v-if="info || $slots.info" | ||
tooltip-width="220px" | ||
tooltip-text-align="left" | ||
> | ||
<FontAwesomeIcon :icon="faInfoCircle" /> | ||
<template #tooltip> | ||
<slot name="info"> | ||
{{ info }} | ||
</slot> | ||
</template> | ||
</BcTooltip> | ||
<BcPremiumGem | ||
v-if="hasPremiumGem" | ||
/> | ||
</span> | ||
<span class="bc-settings-row--action"> | ||
<LazyBcInputUnit | ||
v-if="hasUnit" | ||
v-model="input" | ||
unit=" %" | ||
/> | ||
<BcInputCheckbox | ||
v-model="checkbox" | ||
:input-id="idCheckbox" | ||
/> | ||
</span> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.bc-settings-row { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
.bc-settings-row--info { | ||
display: flex; | ||
gap: 0.75rem; | ||
align-items: center | ||
} | ||
.bc-settings-row--action { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.75rem; | ||
} | ||
.has-border-top { | ||
border-top: 1px solid var(--dark-grey); | ||
padding-top: 0.5rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.