Skip to content

Commit 7758a77

Browse files
author
Md. Alimuzzaman Alim
committed
Issue #244
Updated style to match our new error style.
1 parent d3ff810 commit 7758a77

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

static/scripts/wp-stateless.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ var wpStatelessApp = angular.module('wpStatelessApp', [])
207207
$scope.processStart = function(e) {
208208

209209
$scope.error = false;
210+
$scope.status = '';
211+
$scope.extraStatus = '';
210212
$scope.objectsCounter = 0;
211213
$scope.objectsTotal = 0;
212214
$scope.objectIDs = [];

static/styles/error-notice.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
background-image: url('../images/stateless.svg');
55
background-repeat: no-repeat;
66
background-size: 40px 40px;
7-
background-position: 5px center;
8-
padding: 11px 15px 11px 55px;
7+
background-position: 10px center;
8+
padding: 11px 15px 11px 70px;
99
border-left-color: #FC5922 !important;
1010

1111
}

static/views/regenerate_interface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090

9191
</div>
9292

93-
<div class="status {{error?'error':'success'}}" ng-show="status">
93+
<div class="status ud-admin-notice {{error?'error':'notice'}}" ng-show="status">
9494
<p>
9595
<?php _e( 'Status:', ud_get_stateless_media()->domain ); ?> {{status}}
96-
<span class="button button-secondary" ng-show="extraStatus" ng-click="showErrorDetails = !showErrorDetails">Details</span>
96+
<span class="button button-secondary" ng-show="extraStatus" ng-click="showErrorDetails = !showErrorDetails"><?php _e( 'Details', ud_get_stateless_media()->domain ); ?></span>
9797
</p>
9898
<div id="sm-error-details" class="extra-info" ng-show="extraStatus && showErrorDetails" ng-bind-html="extraStatus | trust"></div>
9999
</div>

0 commit comments

Comments
 (0)