This commit is contained in:
parent
d84d64191a
commit
3a20ed1559
7 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"lockEdit": "Make doc read-only",
|
||||
"unlockEdit": "Make doc writable",
|
||||
"enable": "Enable",
|
||||
"disable": "Disable",
|
||||
"removeWorkspacePhysically": "Do you want to physically delete the data in workspace ${x}? (Physical deletion cannot be recovered)",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"lockEdit": "Hacer que el documento sea de sólo lectura",
|
||||
"unlockEdit": "Hacer que el documento sea escribible",
|
||||
"enable": "Habilitar",
|
||||
"disable": "Desactivar",
|
||||
"removeWorkspacePhysically": "¿Quieres eliminar físicamente los datos en el espacio de trabajo ${x}? (La eliminación física no se puede recuperar)",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"lockEdit": "Rendre le document en lecture seule",
|
||||
"unlockEdit": "Rendre le document accessible en écriture",
|
||||
"enable": "Activer",
|
||||
"disable": "Désactiver",
|
||||
"removeWorkspacePhysically": "Voulez-vous supprimer physiquement les données de l'espace de travail ${x} ? (La suppression physique ne peut pas être récupérée)",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"lockEdit": "鎖定編輯",
|
||||
"unlockEdit": "解除鎖定",
|
||||
"enable": "啟用",
|
||||
"disable": "禁用",
|
||||
"removeWorkspacePhysically": "是否物理刪除工作空間 ${x} 的數據?(物理刪除無法恢復)",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"lockEdit": "锁定编辑",
|
||||
"unlockEdit": "解除锁定",
|
||||
"enable": "启用",
|
||||
"disable": "禁用",
|
||||
"removeWorkspacePhysically": "是否物理删除工作空间 ${x} 的数据?(物理删除无法恢复)",
|
||||
|
|
|
@ -46,7 +46,7 @@ export class Breadcrumb {
|
|||
'<div class="protyle-breadcrumb__bar"></div>'}
|
||||
<span class="protyle-breadcrumb__space"></span>
|
||||
<button class="protyle-breadcrumb__icon fn__none" data-type="exit-focus">${window.siyuan.languages.exitFocus}</button>
|
||||
<button class="block__icon block__icon--show fn__flex-center ariaLabel" aria-label="${window.siyuan.languages.editReadonly}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button>
|
||||
<button class="block__icon block__icon--show fn__flex-center ariaLabel" aria-label="${window.siyuan.languages.lockEdit}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button>
|
||||
<span class="fn__space"></span>
|
||||
<button class="block__icon block__icon--show fn__flex-center ariaLabel" data-type="doc" aria-label="${window.siyuan.languages.gutterTip2}"><svg><use xlink:href="#iconFile"></use></svg></button>
|
||||
<span class="fn__space"></span>
|
||||
|
|
|
@ -17,6 +17,7 @@ import {isMobile} from "../../util/functions";
|
|||
import {foldPassiveType} from "../wysiwyg/renderBacklink";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
import {avRender} from "../render/av/render";
|
||||
import {hideTooltip} from "../../dialog/tooltip";
|
||||
|
||||
export const onGet = (options: {
|
||||
data: IWebSocketData,
|
||||
|
@ -328,6 +329,8 @@ export const disabledProtyle = (protyle: IProtyle) => {
|
|||
item.setAttribute("contenteditable", "false");
|
||||
});
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"] use').setAttribute("xlink:href", "#iconLock");
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"]').setAttribute("aria-label", window.siyuan.languages.unlockEdit);
|
||||
hideTooltip();
|
||||
};
|
||||
|
||||
/** 解除编辑器禁用 */
|
||||
|
@ -358,6 +361,8 @@ export const enableProtyle = (protyle: IProtyle) => {
|
|||
}
|
||||
});
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"] use').setAttribute("xlink:href", "#iconUnlock");
|
||||
protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"]').setAttribute("aria-label", window.siyuan.languages.lockEdit);
|
||||
hideTooltip();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue