Skip to content

Commit

Permalink
chore: change bkp file name to albyhub
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Aug 19, 2024
1 parent 53f9c60 commit 6a247d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/screens/BackupNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function BackupNode() {
const url = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "nwc.bkp";
a.download = "albyhub.bkp";
document.body.appendChild(a);
a.click();
window.URL.revokeObjectURL(url);
Expand Down
2 changes: 1 addition & 1 deletion http/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ func (httpSvc *HttpService) createBackupHandler(c echo.Context) error {
}

c.Response().Header().Set("Content-Type", "application/octet-stream")
c.Response().Header().Set("Content-Disposition", "attachment; filename=nwc.bkp")
c.Response().Header().Set("Content-Disposition", "attachment; filename=albyhub.bkp")
c.Response().WriteHeader(http.StatusOK)
c.Response().Write(buffer.Bytes())
return nil
Expand Down
4 changes: 2 additions & 2 deletions wails/wails_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (app *WailsApp) WailsRequestRouter(route string, method string, body string

saveFilePath, err := runtime.SaveFileDialog(ctx, runtime.SaveDialogOptions{
Title: "Save Backup File",
DefaultFilename: "nwc.bkp",
DefaultFilename: "albyhub.bkp",
})
if err != nil {
logger.Logger.WithFields(logrus.Fields{
Expand Down Expand Up @@ -768,7 +768,7 @@ func (app *WailsApp) WailsRequestRouter(route string, method string, body string

backupFilePath, err := runtime.OpenFileDialog(ctx, runtime.OpenDialogOptions{
Title: "Select Backup File",
DefaultFilename: "nwc.bkp",
DefaultFilename: "albyhub.bkp",
})
if err != nil {
logger.Logger.WithFields(logrus.Fields{
Expand Down

0 comments on commit 6a247d7

Please sign in to comment.