Skip to content
Snippets Groups Projects
Unverified Commit 1ce863ba authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

remote true

parent 448fdbb5
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ class Server::WebsitesController < Server::ApplicationController
def update_theme
@website.update_theme_version
redirect_back(fallback_location: server_websites_path, notice: t('server_admin.websites.update_theme_notice', website: @website.to_s))
end
protected
......
......@@ -26,7 +26,7 @@
<td>
<span class="js-version"><%= link_to website.theme_version, website.theme_version_url, target: :_blank if website.theme_version_url.present? %></span><br>
<%= link_to t('server_admin.websites.buttons.theme.sync'), sync_theme_version_server_website_path(website), method: :post, remote: true, class: button_classes if website.url.present? %>
<%= link_to t('server_admin.websites.buttons.theme.update'), update_theme_server_website_path(website), method: :post, class: button_classes if website.url.present? && website.github? %>
<%= link_to t('server_admin.websites.buttons.theme.update'), update_theme_server_website_path(website), method: :post, remote: true, class: button_classes if website.url.present? && website.github? %>
</td>
</tr>
<% end %>
......
var notyf = new Notyf();
notyf.open({
type: 'success',
position: {
x: 'center',
y: 'bottom'
},
message: "<%= j(t('server_admin.websites.update_theme_notice', website: @website.to_s)) %>",
duration: 5000,
ripple: true,
dismissible: true
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment