Merge pull request #230 from resin-io/refactor/use-settings-service-in-finish

Use SettingsService in FinishController
This commit is contained in:
Juan Cruz Viotti 2016-04-01 09:13:41 -04:00
commit 91400922cd
2 changed files with 9 additions and 4 deletions

View File

@ -16,7 +16,14 @@
'use strict';
module.exports = function($state, SelectionStateService, ImageWriterService, AnalyticsService) {
module.exports = function($state, SelectionStateService, ImageWriterService, AnalyticsService, SettingsService) {
/**
* @summary Settings data
* @type Object
* @public
*/
this.settings = SettingsService.data;
/**
* @summary Restart the burning process

View File

@ -2,9 +2,7 @@
<div class="col-xs">
<div class="box text-center">
<h3><span class="tick tick--success" class="space-right-tiny"></span> Burn Complete!</h3>
<p class="soft"
ng-controller="SettingsController as settings"
ng-show="settings.storage.unmountOnSuccess">Safely ejected and ready for use</p>
<p class="soft" ng-show="finish.settings.unmountOnSuccess">Safely ejected and ready for use</p>
<div class="row center-xs space-vertical-large">
<div class="col-xs-4 space-medium">