Project

General

Profile

« Previous | Next » 

Revision 60004

[Monitor Dashboard | Trunk]: Some UI changes

View differences:

edit-stakeholder.component.ts
269 269
      this.removePhoto();
270 270
      this.subscriptions.push(this.stakeholderService.buildStakeholder(this.properties.monitorServiceAPIURL,
271 271
        this.stakeholderFb.value).subscribe(stakeholder => {
272
        UIkit.notification(stakeholder.name + '\'s has been successfully created', {
272
        UIkit.notification(stakeholder.name + '\'s has been <b>successfully created</b>', {
273 273
          status: 'success',
274
          timeout: 3000,
275
          pos: 'top-left'
274
          timeout: 6000,
275
        pos: 'bottom-right'
276 276
        });
277 277
        callback(stakeholder);
278 278
      }, error => {
279 279
        UIkit.notification('An error has occurred. Please try again later', {
280 280
          status: 'danger',
281
          timeout: 3000,
282
          pos: 'top-left'
281
          timeout: 6000,
282
        pos: 'bottom-right'
283 283
        });
284 284
        if (errorCallback) {
285 285
          errorCallback(error)
......
292 292
      this.stakeholderFb.get('index_name').enable();
293 293
      this.stakeholderFb.get('index_shortName').enable();
294 294
      this.subscriptions.push(this.stakeholderService.saveElement(this.properties.monitorServiceAPIURL, this.stakeholderFb.value).subscribe(stakeholder => {
295
        UIkit.notification(stakeholder.name + '\'s has been successfully saved', {
295
        UIkit.notification(stakeholder.name + '\'s has been <b>successfully saved</b>', {
296 296
          status: 'success',
297
          timeout: 3000,
298
          pos: 'top-left'
297
          timeout: 6000,
298
        pos: 'bottom-right'
299 299
        });
300 300
        callback(stakeholder);
301 301
      }, error => {
302 302
        UIkit.notification('An error has occurred. Please try again later', {
303 303
          status: 'danger',
304
          timeout: 3000,
305
          pos: 'top-left'
304
          timeout: 6000,
305
        pos: 'bottom-right'
306 306
        });
307 307
      }));
308 308
    }

Also available in: Unified diff