Skip to content

Commit

Permalink
fix: redirect after save bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Apr 21, 2021
1 parent 01f96c9 commit c7d5132
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 144 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='unicms-editorial-board',
version='0.7.1',
version='0.7.2',

packages=[PKG_NAME],
package_dir={PKG_NAME: f"{SRC_FOLDER}/{PKG_NAME}"},
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");

importScripts(
"/static/unicms_editorial_board_vue/precache-manifest.d7f0d5228b7c60e40e56062b9c3cd479.js"
"/static/unicms_editorial_board_vue/precache-manifest.e81f4bd6cd76636191cb2002401a5e9f.js"
);

workbox.core.setCacheNameDetails({prefix: "vue-light-bootstrap-dashboard"});
Expand Down
2 changes: 1 addition & 1 deletion src/unicms_editorial_board/templates/board.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="apple-touch-icon" sizes="76x76" href="/static/unicms_editorial_board_vue/apple-icon.png"><!--[if IE]><link rel="icon" type="image/png" sizes="96x96" href="/static/unicms_editorial_board_vue/favicon.png"><![endif]--><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>uniCMS - Editorial Board</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/js/app.237ef0a5.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/static/unicms_editorial_board_vue/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/unicms_editorial_board_vue/img/icons/favicon-16x16.png"><link rel="manifest" href="/static/unicms_editorial_board_vue/manifest.json"><meta name="theme-color" content="#344675"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="#344675"><meta name="apple-mobile-web-app-title" content="uniCMS - Unical Editorial Board"><link rel="apple-touch-icon" href="/static/unicms_editorial_board_vue/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/static/unicms_editorial_board_vue/img/icons/safari-pinned-tab.svg" color="#344675"><meta name="msapplication-TileImage" content="/static/unicms_editorial_board_vue/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#344675"></head><body><div id="app"></div><script src="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js"></script><script src="/static/unicms_editorial_board_vue/js/app.237ef0a5.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="utf-8"><link rel="apple-touch-icon" sizes="76x76" href="/static/unicms_editorial_board_vue/apple-icon.png"><!--[if IE]><link rel="icon" type="image/png" sizes="96x96" href="/static/unicms_editorial_board_vue/favicon.png"><![endif]--><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><title>uniCMS - Editorial Board</title><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="preload" as="style"><link href="/static/unicms_editorial_board_vue/js/app.4a9ed882.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js" rel="preload" as="script"><link href="/static/unicms_editorial_board_vue/css/chunk-vendors.25bdde32.css" rel="stylesheet"><link href="/static/unicms_editorial_board_vue/css/app.bca404fa.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/static/unicms_editorial_board_vue/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/unicms_editorial_board_vue/img/icons/favicon-16x16.png"><link rel="manifest" href="/static/unicms_editorial_board_vue/manifest.json"><meta name="theme-color" content="#344675"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="#344675"><meta name="apple-mobile-web-app-title" content="uniCMS - Unical Editorial Board"><link rel="apple-touch-icon" href="/static/unicms_editorial_board_vue/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/static/unicms_editorial_board_vue/img/icons/safari-pinned-tab.svg" color="#344675"><meta name="msapplication-TileImage" content="/static/unicms_editorial_board_vue/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#344675"></head><body><div id="app"></div><script src="/static/unicms_editorial_board_vue/js/chunk-vendors.b3ebd97f.js"></script><script src="/static/unicms_editorial_board_vue/js/app.4a9ed882.js"></script></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export default {
webpath_id: this.webpath_id,
page_id: this.page_id,
alerts: this.alerts}})
.catch(() => {})
this.page_title = response.data.name;
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default {
this.$set(this.form, key, value.id)
}
else if(this.date_fields.includes(key) && value) {
console.log(value)
this.$set(this.form, key,
value.substr(0,16).replace("T"," "))
}
Expand Down Expand Up @@ -94,12 +95,13 @@ export default {
message: 'webpath publication edited successfully',
dismissable: true }
);
this.webpath_id = response.data.webpath;
this.webpath_id = response.data.webpath.id;
this.$router.push({name: 'WebpathPublicationEdit',
params: {site_id: this.site_id,
webpath_id: this.webpath_id,
publication_id: this.publication_id,
alerts: this.alerts}})
.catch(() => {})
this.page_title = response.data.publication.full_name;
}
)
Expand Down

0 comments on commit c7d5132

Please sign in to comment.