* update dependencies

* Update .eslintrc.js

* Update .gitignore

* Create onpush.yml

* downgrade 2 packages causing test failure

* fix some localizaiton strings
This commit is contained in:
JFH
2021-05-09 22:36:50 +02:00
committed by GitHub
parent c75170916f
commit af3d807505
4 changed files with 16 additions and 16 deletions

View File

@@ -219,7 +219,7 @@ class LayersPanel {
} while (this.editor.svgCanvas.getCurrentDrawing().hasLayer(uniqName));
const newName = prompt(
this.uiStrings.notification.enterUniqueLayerName,
this.i18next.t('notification.enterUniqueLayerName'),
uniqName
);
if (!newName) {
@@ -263,7 +263,7 @@ class LayersPanel {
this.editor.svgCanvas.getCurrentDrawing().getCurrentLayerName() + " copy";
const newName = prompt(
this.uiStrings.notification.enterUniqueLayerName,
this.i18next.t('notification.enterUniqueLayerName'),
name
);
if (!newName) {
@@ -331,7 +331,7 @@ class LayersPanel {
oldName === newName ||
this.editor.svgCanvas.getCurrentDrawing().hasLayer(newName)
) {
alert(this.uiStrings.notification.layerHasThatName);
alert(this.i18next.t('notification.layerHasThatName'));
return;
}
this.editor.svgCanvas.renameCurrentLayer(newName);

View File

@@ -558,7 +558,7 @@ class TopPanel {
if (!valid) {
e.target.value = this.editor.selectedElement().getAttribute(attr);
// eslint-disable-next-line no-alert
alert(this.uiStrings.notification.invalidAttrValGiven);
alert(this.i18next.t('notification.invalidAttrValGiven'));
return false;
}
@@ -619,7 +619,7 @@ class TopPanel {
if (!isNullish(this.editor.selectedElement) || this.multiselected) {
// eslint-disable-next-line no-alert
const url = prompt(
this.uiStrings.notification.enterNewLinkURL,
this.i18next.t('notification.enterNewLinkURL'),
"http://"
);
if (url) {