Skip to content

Commit

Permalink
Fix always use webapi prefix for RRM API
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Jun 21, 2024
1 parent 319d273 commit e040290
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/src/components/dialogs/uploadFileDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default
self.hideProgressIndicator();
//helper.unmask(self.owner);
// self.owner.getEl()?.unmask();
self.showMsg(self.helper.formatString(self.helper.V('upload_file_dialog', 'unable_update_rr_msg'), responseText?.error ?? "No response from the readUpdateFile.cgi script."));
self.showMsg(self.helper.formatString(self.helper.V('upload_file_dialog', 'unable_update_rr_msg'), responseText?.error ?? "No response from the webapi/readUpdateFile.cgi script."));
return;
}
const configName = 'rrUpdateFileVersion';
Expand Down
2 changes: 1 addition & 1 deletion src/src/tabs/addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default
appWindow: this.appWin,
restful: true,
root: "result",
url: `/webman/3rdparty/rr-manager/getAddons.cgi`,
url: `/webman/3rdparty/rr-manager/webapi/getAddons.cgi`,
idProperty: "name",
fields: [{
name: 'name',
Expand Down
2 changes: 1 addition & 1 deletion src/src/tabs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default
},

getConf: function () {
return this.apiProvider.callCustomScript('webapi/getConfig.cgi')
return this.apiProvider.callCustomScript('getConfig.cgi')
},
onDeactive: function () {
this.panels.healthPanel.fireEvent(
Expand Down
2 changes: 1 addition & 1 deletion src/src/utils/synoApiProvider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default
SYNOCOMMUNITY.RRManager.SynoApiProvider = {
sendWebAPI: null,
_prefix: '/webman/3rdparty/rr-manager/',
_prefix: '/webman/3rdparty/rr-manager/webapi/',
init: function (sendWebAPI, findAppWindow) {
this.sendWebAPI = sendWebAPI;
},
Expand Down
2 changes: 1 addition & 1 deletion src/ui/rr-manager.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Ext.define("SYNOCOMMUNITY.RRManager.Widget", {
that.sendWebAPI(args);
});
},
_prefix: '/webman/3rdparty/rr-manager/',
_prefix: '/webman/3rdparty/rr-manager/webapi/',
callCustomScript: function (scriptName) {
return new Promise((resolve, reject) => {
Ext.Ajax.request({
Expand Down

0 comments on commit e040290

Please sign in to comment.