Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to v-model in @nextcloud/[email protected] #1010

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/authentication/renderer/AuthenticationApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ async function login() {
<h2 class="login-box__header">
{{ t('talk_desktop', 'Log in to Nextcloud') }}
</h2>
<NcTextField :label="t('talk_desktop', 'Nextcloud server address')"
<NcTextField v-model="rawServerUrl"
:label="t('talk_desktop', 'Nextcloud server address')"
label-visible
:value.sync="rawServerUrl"
placeholder="https://try.nextcloud.com"
inputmode="url"
:success="state === 'success'"
Expand Down
8 changes: 4 additions & 4 deletions src/talk/renderer/Settings/DesktopSettingsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function relaunch() {
</NcNoteCard>

<SettingsSubsection v-if="!isLinux" :name="t('talk_desktop', 'General')">
<NcCheckboxRadioSwitch :checked.sync="launchAtStartup" type="switch">
<NcCheckboxRadioSwitch v-model="launchAtStartup" type="switch">
{{ t('talk_desktop', 'Launch at startup') }}
</NcCheckboxRadioSwitch>
</SettingsSubsection>
Expand All @@ -114,11 +114,11 @@ function relaunch() {
</template>
</SettingsSelect>

<NcCheckboxRadioSwitch :checked.sync="monochromeTrayIcon" type="switch">
<NcCheckboxRadioSwitch v-model="monochromeTrayIcon" type="switch">
{{ t('talk_desktop', 'Use monochrome tray icon') }}
</NcCheckboxRadioSwitch>

<NcCheckboxRadioSwitch :checked.sync="systemTitleBar" type="switch">
<NcCheckboxRadioSwitch v-model="systemTitleBar" type="switch">
{{ t('talk_desktop', 'Use system title bar') }}
</NcCheckboxRadioSwitch>

Expand All @@ -141,7 +141,7 @@ function relaunch() {
:aria-describedby="descriptionId"
label-outside
inputmode="number"
:value="zoomFactorPercentage"
:model-value="zoomFactorPercentage"
@change="zoomFactorPercentage = $event.target.value"
@blur="$event.target.value = zoomFactorPercentage" />
<NcButton :aria-label="t('talk_desktop', 'Zoom in')" type="tertiary" @click="zoomFactor *= ZOOM_STEP">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const handleSelected = (option) => {
:clearable="false"
placement="top"
:options="clearAtOptions"
:value="{ label: clearAtAsLabel }"
:model-value="{ label: clearAtAsLabel }"
:disabled="disabled"
@option:selected="handleSelected" />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const handleUserStatusMessageChange = (message) => {
<NcTextField :label="t('talk_desktop', 'Status message')"
maxlength="80"
:disabled="disabled"
:value="message ?? ''"
@update:value="handleUserStatusMessageChange" />
:model-value="message ?? ''"
@update:model-value="handleUserStatusMessageChange" />
</div>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/talk/renderer/Viewer/ViewerHandlerText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const { content, loading, error } = useFileContent(toRef(() => props.file.filena
<template v-if="content">
<fieldset :aria-label="t('talk_desktop', 'Controls')" class="viewer-text__controls">
<fieldset class="viewer-text__layout-switch" :aria-label="t('talk_desktop', 'Layout')">
<NcCheckboxRadioSwitch :checked.sync="layout"
<NcCheckboxRadioSwitch v-model="layout"
:aria-label="t('talk_desktop', 'Compact')"
value="compact"
type="radio"
Expand All @@ -74,7 +74,7 @@ const { content, loading, error } = useFileContent(toRef(() => props.file.filena
<IconFileDocumentOutline :size="20" />
</template>
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="layout"
<NcCheckboxRadioSwitch v-model="layout"
:aria-label="t('talk_desktop', 'Wide')"
value="wide"
type="radio"
Expand Down