From f028301f747f2c67a4f2012f0cc50298c51d8b22 Mon Sep 17 00:00:00 2001 From: Pranab Das <31024886+pranabdas@users.noreply.github.com> Date: Sun, 21 Apr 2024 14:41:13 +0800 Subject: [PATCH] SOF-7298: fix arbitrary magnetization direction readonly status --- .../providers/NonCollinearMagnetizationContextProvider.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/providers/NonCollinearMagnetizationContextProvider.js b/src/context/providers/NonCollinearMagnetizationContextProvider.js index 9bf26b7..ce36349 100644 --- a/src/context/providers/NonCollinearMagnetizationContextProvider.js +++ b/src/context/providers/NonCollinearMagnetizationContextProvider.js @@ -78,7 +78,7 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm angle1: this.defaultFieldStyles, angle2: this.defaultFieldStyles, }, - "ui:readonly": !this.isExistingChargeDensity, + "ui:readonly": !this.isArbitrarySpinDirection, "ui:options": { addable: false, orderable: false, @@ -231,17 +231,17 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm properties: { x: { type: "number", - title: "x-component", + title: "X-component", default: 0.0, }, y: { type: "number", - title: "y-component", + title: "Y-component", default: 0.0, }, z: { type: "number", - title: "z-component", + title: "Z-component", default: 0.0, }, },