Avena Webapp API - v0.0.1
    Preparing search index...

    Function planConfigSave

    • Decides where to save a configuration from the edit form.

      • New configuration: the key of its identity.
      • Edit that keeps the identity (same derived key as before the edit): the key it was loaded from, even if that key does not follow the current naming.
      • Edit that changes site, box or source: the key of the new identity, with the old key returned as previousKey.

      conflict is set when the target key is taken by another configuration.

      Parameters

      • options: {
            editingKey: string;
            existingKeys: Iterable<string>;
            isAddingNew: boolean;
            original: ConfigIdentity | null;
            updated: ConfigIdentity;
        }
        • editingKey: string

          Key the edited configuration was loaded from.

        • existingKeys: Iterable<string>

          Keys of all loaded configurations.

        • isAddingNew: boolean

          The form was opened with "Add New LabJack".

        • original: ConfigIdentity | null

          The configuration as loaded, before the edit.

        • updated: ConfigIdentity

          The configuration to save.

      Returns ConfigSavePlan