Verified Commit fb9af1f6 authored by Jan Wennrich's avatar Jan Wennrich 🎓

feat: reworked project side-panel header (#800)

parent 311415d2
......@@ -65,3 +65,25 @@
margin: 0 !important;
width: 40px !important;
}
.quiqqer-project-panel .qui-panel-icon {
display: none;
}
.quiqqer-project-panel h2.qui-panel-title {
padding-left: 10px;
}
.quiqqer-project-panel-button-home {
width: 40px;
}
.quiqqer-project-panel-button-home .image-container {
float: left;
text-align: center;
width: 100%;
}
.quiqqer-project-panel-button-home .image-container span {
float: none;
}
\ No newline at end of file
......@@ -68,7 +68,7 @@ define('controls/projects/project/Panel', [
name : 'projects-panel',
project: false,
lang : false,
icon : 'fa fa-home'
icon : false
});
this.parent(options);
......@@ -150,6 +150,8 @@ define('controls/projects/project/Panel', [
var self = this,
Content = this.getContent();
this.getElm().addClass('quiqqer-project-panel');
Content.set(
'html',
......@@ -305,7 +307,7 @@ define('controls/projects/project/Panel', [
// title button
this.$Button = new QUIButton({
name : 'projects',
image : 'fa fa-arrow-circle-left',
icon : 'fa fa-home',
title : Locale.get('quiqqer/system', 'projects.project.panel.projectSelect'),
events: {
onClick: function (Btn, event) {
......@@ -339,6 +341,7 @@ define('controls/projects/project/Panel', [
this.$Button.getElm().removeClass('qui-button');
this.$Button.getElm().addClass('button');
this.$Button.getElm().addClass('btn-blue');
this.$Button.getElm().addClass('quiqqer-project-panel-button-home');
},
/**
......@@ -366,7 +369,8 @@ define('controls/projects/project/Panel', [
self.openProject();
self.Loader.hide();
return;
} else if (Object.getLength(result)) {
} else {
if (Object.getLength(result)) {
for (key in result) {
if (!result.hasOwnProperty(key)) {
continue;
......@@ -385,6 +389,7 @@ define('controls/projects/project/Panel', [
self.Loader.hide();
return;
}
}
// no projects exists
var Body = self.getBody();
......
Markdown is supported
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