Skip to content
Snippets Groups Projects
Commit 1257f1ce authored by Alexander Rose's avatar Alexander Rose
Browse files

label tweak

parent 07cd9f4b
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ const StructureFromModel = PluginStateTransform.BuiltIn({ ...@@ -189,7 +189,7 @@ const StructureFromModel = PluginStateTransform.BuiltIn({
return Task.create('Build Structure', async ctx => { return Task.create('Build Structure', async ctx => {
const s = Structure.ofModel(a.data); const s = Structure.ofModel(a.data);
await ensureSecondaryStructure(s) await ensureSecondaryStructure(s)
const props = { label: a.data.label, description: s.elementCount === 1 ? '1 element' : `${s.elementCount} elements` }; const props = { label: 'Deposited', description: s.elementCount === 1 ? '1 element' : `${s.elementCount} elements` };
return new SO.Molecule.Structure(s, props); return new SO.Molecule.Structure(s, props);
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment