-
Notifications
You must be signed in to change notification settings - Fork 63
(closes#555) Move VM color picker from bar to the VM name line #583
Conversation
src/style/app.scss
Outdated
@@ -385,6 +385,10 @@ md-card-actions { | |||
align-items: center; | |||
} | |||
|
|||
.title-color-container { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move it to sidebar component
@@ -14,6 +14,8 @@ import { EntityDoesNotExistError } from '../../shared/components/sidebar/entity- | |||
styleUrls: ['vm-sidebar.component.scss'] | |||
}) | |||
export class VmSidebarComponent extends SidebarComponent<VirtualMachine> { | |||
public vm: VirtualMachine; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this. Use entity property
@@ -27,6 +29,7 @@ export class VmSidebarComponent extends SidebarComponent<VirtualMachine> { | |||
return this.vmService.getWithDetails(id) | |||
.switchMap(vm => { | |||
if (vm) { | |||
this.vm = vm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this. Use entity property
@@ -31,6 +31,10 @@ $input-margin: 10px; | |||
} | |||
} | |||
|
|||
.color-preview-no-field { | |||
top: 4px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this should be added by some parent component.
add margin instead
class="color-preview" | ||
[style.background-color]="selectedColor?.value"></div> | ||
<div *ngIf="!hasColorField" | ||
class="color-preview mb-1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is mb-1 required?
8c998e2
to
3a9c09e
Compare
3a9c09e
to
73b57c6
Compare
No description provided.