mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(controls): render the action and toggle buttons with UiButton
The Authoring panel's and shot list's buttons, the CCTV panel's buttons and Street Level's nearest button are the kit's UiButton, keeping their classes: danger buttons take the alert tone and primary ones the primary variant. The CCTV on/off, coverage, auto-hop, projection and adjust toggles, which showed their state only by colour, now carry aria-pressed too.
This commit is contained in:
1 parent
cd231faae9
commit
fc53682129
6 files changed
+46
-30
No files matched your search
@@ -3,6 +3,7 @@ import { computed, nextTick, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { t } from '../../i18n/index.js';
|
||||
import { describeShot } from '../scenePresentation.js';
|
||||
import UiButton from '../kit/UiButton.vue';
|
||||
import { useSceneStore } from '../stores/scenes.js';
|
||||
|
||||
// The selected scene's shots. Rows keep their identity across selection so a
|
||||
@@ -100,17 +101,16 @@ function onRenameKey(shot, event) {
|
||||
/><template v-else>{{ shownTitle(shot) }}</template></div
|
||||
>
|
||||
<div class="scene-shot-actions">
|
||||
<button
|
||||
type="button"
|
||||
<UiButton
|
||||
class="gev-action-button gev-action-button--compact scene-shot-btn"
|
||||
@click="act('load', shot)"
|
||||
>{{ t('LOAD') }}</button
|
||||
>{{ t('LOAD') }}</UiButton
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
<UiButton
|
||||
tone="alert"
|
||||
class="gev-action-button gev-action-button--danger gev-action-button--compact scene-shot-btn scene-shot-danger"
|
||||
@click="act('remove', shot)"
|
||||
>{{ t('DEL') }}</button
|
||||
>{{ t('DEL') }}</UiButton
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user