mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +00:00
Use SettingsService in FinishController
EXposing the settings from the `FinishController` is a better approach that instantiating the `SettingsController` in the Finish page template.
This commit is contained in:
parent
6a11232eea
commit
4ef7dae3c4
@ -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
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user