Skip to content

Commit d723254

Browse files
author
Dennis Öhman
committed
Reload fix
1 parent 38358ab commit d723254

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Our.Umbraco.CopyVariant/App_Plugins/Our.Umbraco.CopyVariant/contentapp.controller.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
variant.tabs.forEach(function (tab) {
4848
tab.properties.forEach(function (property) {
49+
4950
if (property.culture != null) {
5051
vm.properties.push({
5152
alias: property.alias,
@@ -91,10 +92,6 @@
9192
).then(r => {
9293
culture.state = "success";
9394
culture.loading = false;
94-
95-
96-
97-
vm.reload();
9895
}, e => {
9996
culture.state = "error";
10097
culture.loading = false;
@@ -103,10 +100,8 @@
103100
}
104101

105102
vm.reload = function () {
106-
vm.loading = true;
107-
108-
windo
109-
103+
vm.loading = true
104+
window.location.reload();
110105
}
111106

112107
function init() {

0 commit comments

Comments
 (0)