Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 committed Oct 15, 2017
1 parent 5b8c769 commit 3de2a52
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/resources/locale/es_ES/es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ msgstr "Comprobando Python..."

#: app/scripts/services/tools.js:819
msgid "Click here to <b>setup the drivers</b>"
msgstr "Haga clic aquí para <b>configurar los drivers</b>"
msgstr "Haz clic aquí para <b>configurar los drivers</b>"

#: app/scripts/services/drivers.js:110 app/scripts/services/drivers.js:203
#: app/scripts/services/drivers.js:225 app/scripts/services/tools.js:132
#: app/scripts/services/tools.js:246
msgid "Click here to install it"
msgstr "Haga clic aquí para instalarlo"
msgstr "Haz clic aquí para instalarlo"

#: app/scripts/controllers/menu.js:326
msgid "Click here to view"
msgstr "Haz clic aquí para instalarlo"
msgstr "Haz clic aquí para ver"

#: app/scripts/controllers/menu.js:247
msgid "Close"
Expand Down
12 changes: 12 additions & 0 deletions app/scripts/services/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ angular.module('icestudio')
}.bind(this));

this.installToolchain = function() {
if (resultAlert) {
resultAlert.dismiss(false);
}
utils.removeToolchain();
if (utils.checkDefaultToolchain()) {
installDefaultToolchain();
Expand All @@ -608,13 +611,19 @@ angular.module('icestudio')
};

this.updateToolchain = function() {
if (resultAlert) {
resultAlert.dismiss(false);
}
alertify.confirm(gettextCatalog.getString('The toolchain will be updated. This operation requires Internet connection. Do you want to continue?'),
function() {
installOnlineToolchain();
});
};

this.resetToolchain = function() {
if (resultAlert) {
resultAlert.dismiss(false);
}
if (utils.checkDefaultToolchain()) {
alertify.confirm(gettextCatalog.getString('The toolchain will be restored to default. Do you want to continue?'),
function() {
Expand All @@ -628,6 +637,9 @@ angular.module('icestudio')
};

this.removeToolchain = function() {
if (resultAlert) {
resultAlert.dismiss(false);
}
alertify.confirm(gettextCatalog.getString('The toolchain will be removed. Do you want to continue?'),
function() {
utils.removeToolchain();
Expand Down

0 comments on commit 3de2a52

Please sign in to comment.