Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

(closes#555) Move VM color picker from bar to the VM name line #583

Merged
merged 2 commits into from
Oct 4, 2017

Conversation

HeyRoach
Copy link
Contributor

@HeyRoach HeyRoach commented Oct 3, 2017

No description provided.

@@ -385,6 +385,10 @@ md-card-actions {
align-items: center;
}

.title-color-container {
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is mb-1 required?

@HeyRoach HeyRoach force-pushed the 555-move-color-picker-to-vm-name-line branch from 8c998e2 to 3a9c09e Compare October 4, 2017 01:45
@HeyRoach HeyRoach force-pushed the 555-move-color-picker-to-vm-name-line branch from 3a9c09e to 73b57c6 Compare October 4, 2017 01:47
@HeyRoach HeyRoach merged commit 5ce7aaa into master Oct 4, 2017
@HeyRoach HeyRoach deleted the 555-move-color-picker-to-vm-name-line branch October 30, 2017 01:25
@HeyRoach HeyRoach restored the 555-move-color-picker-to-vm-name-line branch October 30, 2017 01:25
@HeyRoach HeyRoach deleted the 555-move-color-picker-to-vm-name-line branch October 30, 2017 01:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants