fix error with namespaces by reloading, new switch styles

This commit is contained in:
Matthew Irish 2018-10-09 23:46:29 -05:00
parent ffee108908
commit f36b9da02f
2 changed files with 5 additions and 4 deletions

View File

@ -39,7 +39,8 @@ export default Component.extend({
fetchListCapability: task(function*() { fetchListCapability: task(function*() {
try { try {
if (this.listCapability) { if (this.listCapability) {
this.listCapability.unloadRecord(); yield this.listCapability.reload();
return;
} }
let capability = yield this.store.findRecord('capabilities', 'sys/namespaces/'); let capability = yield this.store.findRecord('capabilities', 'sys/namespaces/');
this.set('listCapability', capability); this.set('listCapability', capability);

View File

@ -11,21 +11,21 @@
width: $size-8 * 2; width: $size-8 * 2;
} }
&::after { &::after {
left: 0;
width: $size-8 * 0.8; width: $size-8 * 0.8;
height: $size-8 * 0.8; height: $size-8 * 0.8;
transform: translateX(0.15rem); transform: translateX(0.15rem);
left: 0;
top: $size-8/ 4; top: $size-8/ 4;
} }
} }
&:checked + label::after { &:checked + label::after {
left: 0; left: 0;
transform: translateX(($size-8 * 2) - ($size-8 * 0.9)); transform: translateX(($size-8 * 2) - ($size-8 * 0.94));
} }
} }
} }
.switch[type="checkbox"].is-small + label::after { .switch[type="checkbox"].is-small + label::after {
will-change: transform; will-change: left;
} }
.switch[type="checkbox"]:focus + label { .switch[type="checkbox"]:focus + label {
box-shadow: 0 0 1px $blue; box-shadow: 0 0 1px $blue;