Commit f17ea394 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

update user feedback after creating and updating a website

5 merge requests!143updating yml config,!91Prepare prod,!90Testing,!89Testing,!78Mlab 383
Showing with 5 additions and 4 deletions
+5 -4
...@@ -512,9 +512,10 @@ module.exports = function (app, config, passport, i18n) { ...@@ -512,9 +512,10 @@ module.exports = function (app, config, passport, i18n) {
} else { } else {
let newPagesData = newPages.data let newPagesData = newPages.data
//res.flash("success", "Ihre Webseite wurde erstellt, aber noch nicht veröffentlicht. Bitte fahren Sie mit Schritten 2 und 3 fort, um Ihre Webseite zu veröffentlichen.") res.flash("success", "Ihre Webseite wurde erstellt, aber noch nicht veröffentlicht. Um Ihre Webseite endgültig zu veröffentlichen, "+
res.flash("success", "Your website will be published AFTER you complete your website by following the provided guideline below."+ "schließen Sie die Einrichtung gemäß unten stehender Anleitung ab.")
"\r\n Your website URL: "+tpGitlabPagesURL+newPagesData.path_with_namespace+"/home/") /* res.flash("success", "Your website will be published AFTER you complete your website by following the provided guideline below."+
"\r\n Your website URL: "+tpGitlabPagesURL+newPagesData.path_with_namespace+"/home/") */
res.redirect('/account/updateInformation?id='+newPagesData.id) res.redirect('/account/updateInformation?id='+newPagesData.id)
} }
} }
...@@ -585,7 +586,7 @@ module.exports = function (app, config, passport, i18n) { ...@@ -585,7 +586,7 @@ module.exports = function (app, config, passport, i18n) {
async function(newLogoFile, callback){ // update gitlab page async function(newLogoFile, callback){ // update gitlab page
let updatedPages = await gitlab.updateProject(updatedInformation, newLogoFile) let updatedPages = await gitlab.updateProject(updatedInformation, newLogoFile)
let pagesData = updatedPages.data let pagesData = updatedPages.data
if (pagesData.error) { if (updatedPages.error) {
if(pagesData.message.name == "has already been taken") { if(pagesData.message.name == "has already been taken") {
res.flash("error", "Der Projektname ist bereits vergeben, bitte wählen Sie einen anderen Namen.") res.flash("error", "Der Projektname ist bereits vergeben, bitte wählen Sie einen anderen Namen.")
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment