This commit is contained in:
parent
518ce94912
commit
a74ee348f7
6 changed files with 20 additions and 13 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmUninstall": "Are you sure you want to uninstall ${name}?",
|
||||
"scrollGetMore": "Don't panic... scroll up and down to load more",
|
||||
"flashcardNewCard": "New",
|
||||
"flashcardReviewCard": "Review",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmUninstall": "¿Está seguro de que desea desinstalar ${name}?",
|
||||
"scrollGetMore": "No se asuste... desplácese hacia arriba y hacia abajo para cargar más",
|
||||
"flashcardNewCard": "Nueva Tarjeta",
|
||||
"flashcardReviewCard": "Revisar Tarjeta",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmUninstall": "Êtes-vous sûr de vouloir désinstaller ${name} ?",
|
||||
"scrollGetMore": "Ne paniquez pas... faites défiler de haut en bas pour en charger plus",
|
||||
"flashcardNewCard": "Nouvelle carte",
|
||||
"flashcardReviewCard": "Revoir la carte",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmUninstall": "確定卸載 ${name} ?",
|
||||
"scrollGetMore": "不要驚慌...上下滾動即可加載更多內容",
|
||||
"flashcardNewCard": "新卡",
|
||||
"flashcardReviewCard": "複習卡",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"confirmUninstall": "确定卸载 ${name} ?",
|
||||
"scrollGetMore": "不要惊慌...上下滚动即可加载更多内容",
|
||||
"flashcardNewCard": "新卡",
|
||||
"flashcardReviewCard": "复习卡",
|
||||
|
|
|
@ -564,19 +564,21 @@ export const bazaar = {
|
|||
window.siyuan.config.appearance.icon === packageName) {
|
||||
showMessage(window.siyuan.languages.uninstallTip);
|
||||
} else {
|
||||
fetchPost(url, {
|
||||
packageName
|
||||
}, response => {
|
||||
this._genMyHTML(bazaarType, app);
|
||||
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
|
||||
// TODO destroy plugin
|
||||
if (bazaarType === "plugins") {
|
||||
exportLayout({
|
||||
reload: true,
|
||||
onlyData: false,
|
||||
errorExit: false,
|
||||
});
|
||||
}
|
||||
confirmDialog(window.siyuan.languages.uninstall, window.siyuan.languages.confirmUninstall.replace("${name}", packageName), () => {
|
||||
fetchPost(url, {
|
||||
packageName
|
||||
}, response => {
|
||||
this._genMyHTML(bazaarType, app);
|
||||
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
|
||||
if (bazaarType === "plugins") {
|
||||
// TODO destroy plugin
|
||||
exportLayout({
|
||||
reload: true,
|
||||
onlyData: false,
|
||||
errorExit: false,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue