From c78652867b7410ba721684f3d650ef33c6fd5918 Mon Sep 17 00:00:00 2001 From: Mantas Date: Fri, 5 Jun 2020 12:48:20 +0300 Subject: [PATCH] Follow up - 2ffca390a967a962d03794c6ffac2e5e2946f2ff - Fixes #1961 - S/MIME integration: S/MIME manage view not update after adding certificate or key. --- .../javascripts/app/controllers/_integration/smime.coffee | 4 ++-- spec/system/system/integration/smime_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_integration/smime.coffee b/app/assets/javascripts/app/controllers/_integration/smime.coffee index 542f8bbc1..b4bc5561d 100644 --- a/app/assets/javascripts/app/controllers/_integration/smime.coffee +++ b/app/assets/javascripts/app/controllers/_integration/smime.coffee @@ -55,12 +55,12 @@ class Form extends App.Controller addCertificate: => new Certificate( - callback: @list + callback: @certList ) addPrivateKey: => new PrivateKey( - callback: @list + callback: @certList ) updateGroup: (e) => diff --git a/spec/system/system/integration/smime_spec.rb b/spec/system/system/integration/smime_spec.rb index e8509c56c..19147946b 100644 --- a/spec/system/system/integration/smime_spec.rb +++ b/spec/system/system/integration/smime_spec.rb @@ -15,7 +15,7 @@ RSpec.describe 'Manage > Integration > S/MIME', type: :system do end it 'enabling and adding of public and private key' do - visit '#system/integration/smime' + visit 'system/integration/smime' # enable S/MIME click 'label[for=setting-switch]'